<template>
  <p>Counter: {{ counter }}</p>
</template>

<script setup>
import { useCounterStore } from '@/stores/counter';
import { storeToRefs } from 'pinia';

const store = useCounterStore();

const { counter } = storeToRefs(store);
</script>
